<template>
  <div class="bigbox">
    <div class="message">
      <div class="left"></div>
      <div class="right">
        <div class="name">ddd</div>
        <div class="detail">
          <span>性别：dd</span>
          <span>年龄:ddd</span>
          <span>粉丝数：ddd</span>
        </div>
          <div class="_button">
          <el-button>关注</el-button>
          </div>
      </div>

    </div>
  </div>
</template>

<script>
import {searchPersonbyId} from  "@/api";
export default {
  data () {
    return {
      message:'',
      
    }
  },
  created () {
    this.message = this.$route.params.message
    console.log("message",this.message);
    let temp = this.message
     searchPersonbyId(temp)
      .then(res => {
        console.log(res.data);
      })
      .catch(() => {});
  }
}
</script>

<style lang="less" scoped>
.bigbox{
  width: 400px;
  height: 120px;
  .message{
    display: flex;
    flex-direction: row;
    .left{
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background-color: #000;
    }
    .right{
      margin-top:30px ;
      margin-left: 30px;
      div{
        text-align: left;
      }
      span{
        margin-right: 10px;
      }
      ._button{
        margin: 10px 0;
        margin-left: 180px;
      }
    }
  }
}

</style>